<%
	/**
	 * 用户授权
	 * @author ZmSoft
	 * @version 0.1.0
	 * @since 0.1.0 2018/4/2
	 */
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="version" content="1.1.1-RELEASE build 2018.05.21">
<title>Welcome</title>

</head>

<body>
<form action="http://ZM" method="POST" id="ysfw_home">
    <input type="hidden" id="openId" name="openId" value="${data.openid}">
    <input type="hidden" id="token" name="wxShareToken" value="${wxShareToken}">
    <pf:token />
    <input type="hidden" id="loginType" name="loginType" value="9">
    <input type="hidden" id="userSource" name="userSource" value="10">
</form>
	<script type="text/javascript">
		//0首页1文章2问卷3商品4广告5活动
		var menuid = "${menuId}";
		var param = "?loginType=9&userSource=10&token=${token}";
		var url = "/h5/#/";//最终访问地址
		
		switch (menuid){
		case '1':
			url = url + '1' + param;
			break;
		case '2':
			url = url + '2' + param;
			break;
		case '3':
			url = url + '3' + param;
			break;
		default:
			url = '/player/1.0/h5/home' + param;
			break;
		}

		//加载显示页面
		location.href = url;
	</script>


	<script type="text/javascript">
		//0首页1文章2问卷3商品4广告5活动
		var url = "/h5/#/mainPage?loginType=9&userSource=10&token=${token}";//最终访问地址
	</script>
</body>
</html>